﻿@model zichan.Models.DetailModel
@using zichan.Common
@{
    ViewBag.Title = "详情";
}

@section Pagetitle{
    @AdminCommon.PageTitle("详情", "")
}
@section header{
    <style>
        .control-label {
            text-align: right;
        }
    </style>
}
<div class="portlet-body form">

    <div class="form-body">
        @*<h2 class="margin-bottom-20"> 资产详情 </h2>*@
        <div class="row form-section">
           
                <h3 class="pull-left">  机柜详情</h3>
            <div class="pull-left" style="margin: 15px 15px 0 15px;"><a href="/Cabinet/Index" class="btn green">返回</a></div>
        </div>
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">机柜名称:</label>
                    <div class="col-md-9">
                        @Model.cabinet.Name
                    </div>
                </div>
            </div>
            <!--/span-->
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">所属机房:</label>
                    <div class="col-md-9">
                        @Model.cabinet.MachineRoomName
                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">标准机架数:</label>
                    <div class="col-md-9">
                        @Model.cabinet.Number
                    </div>
                </div>
            </div>
            <!--/span-->
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">剩余机架数:</label>
                    <div class="col-md-9">

                        @Model.noUse

                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">机架状态:</label>
                    <div class="col-md-9">
                        @{
                            if(Model.statu==0)
                            {
                                @("空闲")
                            }
                            if(Model.statu==1)
                            {
                                @("上架")
                            }
                            if(Model.statu==2)
                            {
                                @("下架")
                            }
                        }

                    </div>
                </div>
            </div>
            <!--/span-->
        </div>
        <!--/row-->
        <div class="row">
            <div class="col-md-6">
                <div class="form-group">
                    <label class="control-label col-md-3">备注:</label>
                    <div class="col-md-9">
                        @Model.cabinet.Remark
                    </div>
                </div>
            </div>
        </div>
    </div>

    @if (Model.statu > 0)
    {
        @Html.Action("part_Detail", "Common", new { id = Model.Id })
    }
    @if (PowerHelp.Check("CabinetLog", "index"))
    {
        @Html.Action("Index", "CabinetLog", new { cabinetId = Model.cabinetId })
    }
</div>
<div class="form-actions">
    <div class="row">
        <div class="col-md-offset-3 col-md-9">
            <a href="/Cabinet/Index" class="btn green">返回</a>
        </div>
    </div>
</div>

